-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix browser tooltip refresh for table comments #64441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Update QgsDataItem::refresh() to copy tooltips from new items to existing items - Add RefreshChildrenWhenItemIsRefreshed capability to PostgreSQL and HANA schema items - Enables proper refresh of table comments at both connection and schema levels
|
This is not quite the right approach -- you should instead update the "equals" methods for the item subclass which isn't being correctly updated to consider the tooltip too |
🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. 🍎 MacOS Qt6 buildsDownload MacOS Qt6 builds of this PR for testing. |
|
@TimMcCauley lgtm! Can you confirm this new approach fixes the issue? |
|
Hi @nyalldawson it so far only fixes it if a user clicks refresh on the schema itself. I also want the tooltip to refresh itself after a user clicks OK in the dialog. Somehow it is not working yet, I am still working on it. |
|
Greetings @nyalldawson - this does work now. Please find video proof attached to this comment. I removed it from the HANA provider again as this does not provide setting table comments. Screencast_20260110_213435.webm |
src/core/browser/qgsdataitem.cpp
Outdated
| if ( !mFutureWatcher ) | ||
| { | ||
| mFutureWatcher = std::make_unique<QFutureWatcher<QVector<QgsDataItem *> >>( this ); | ||
| mFutureWatcher = std::make_unique<QFutureWatcher<QVector<QgsDataItem *> >> ( this ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert the unrelated formatting changes to this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson done... after a fight with the cat!
.gitignore
Outdated
| .kdev4/ | ||
| .project | ||
| .pydevproject | ||
| .qtcreator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated change (and duplicate of line 33)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Description
Fixes the bug described in #64414
What now works
The comment is updated in the tooltip once the user sets a new comment.